export default [{
    url: "/api/index",
    method: "get",
    response: () => {
        return {
            code: 200,
            msg: "请求成功",
            data: {
                name: 'mock--我改变了Vuex'
            }
        };
    }
}, { //通知
    url: "/api/tongzhi",
    method: "get",
    response: () => {
        return {
            code: 200,
            msg: "请求成功",
            data: {
                status: 2,
                'list|10': [{
                    status: 2,
                    title: "@ctitle( 10, 20 )",
                    content: "@csentence( 30, 50 )",
                    time: "@datetime"
                }],
            }
        };
    },

}, { //左侧菜单
    url: "/api/menu",
    method: "get",
    response: () => {
        return {
            code: 200,
            msg: "请求成功",
            data: {
                list: [{
                        ico: "House",
                        title: "首页",
                        path: "/index",
                        id: 1,
                        lvl: 1,
                    },
                    {
                        ico: "Setting",
                        title: "系统配置",
                        path: "/systemSettings",
                        id: 2,
                        lvl: 1,
                        children: [{
                                path: 'menuManage',
                                title: "菜单管理",
                            },
                            {
                                path: 'roleManage',
                                title: "角色管理",
                            },
                            {
                                path: 'userManage',
                                title: "用户管理",
                            },
                        ],
                    },
                ],
            }
        };
    },
}, { //用户列表
    url: "/api/userList",
    method: "get",
    response: () => {
        return {
            code: 200,
            msg: "请求成功",
            data: {
                'list|10': [{
                    niceName: "@cname",
                    userName: "@string( lower,6,9 )",
                    userPas: "@string( lower,6,9 )",
                    "role|1": ['管理员', '体验成员'],
                    status: "@boolean",
                }],
            }
        };
    },

}, { //用户列表
    url: "/api/roleList",
    method: "get",
    response: () => {
        return {
            code: 200,
            msg: "请求成功",
            data: {
                'list|10': [{
                    "id:+1": 1,
                    "role|1": ['管理员', '体验成员'],
                    status: "@boolean",
                }],
            }
        };
    },

}, ]